/*
package com.more.spring.boot.springbootredisdemo.controller;

import io.github.pigmesh.ai.deepseek.core.DeepSeekClient;
import io.github.pigmesh.ai.deepseek.core.SyncOrAsyncOrStreaming;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DeepSeekController {

    @Autowired
    private DeepSeekClient deepSeekClient;

    @GetMapping(value = "chat" , produces = MediaType.TEXT_EVENT_STREAM_VALUE)
    public String chat(String promt){
        SyncOrAsyncOrStreaming<String> stringSyncOrAsyncOrStreaming = deepSeekClient.chatCompletion(promt);
        String result =  stringSyncOrAsyncOrStreaming.execute();
        return result;
    }
}
*/
